/**
 * Created by liubin on 2014/07/03.
 */
'use strict';

/**
 * 控制器初始化
 */
define(['angular'], function (angular) {
    return angular.module('agcompany.controllers', []).
        controller('confirmCtrl', ['$scope', '$modalInstance', 'title', 'content', function ($scope, $modalInstance, title, content) {
            console.log('confirm');
            console.log('title');
            console.log('content');
            $scope.title = title;
            $scope.content = content;
            $scope.ok = function () {
                $modalInstance.close();
            };

            $scope.cancel = function () {
                $modalInstance.dismiss('cancel');
            };
        }]);
});